<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ask</title>
    <link rel="stylesheet" href="../css/ask.css" type="text/css"></link>
    <link rel="stylesheet" href="../kindeditor/themes/default/default.css"/>
    <link rel="stylesheet" href="../kindeditor/plugins/code/prettify.css"/>
    <script src="../js/jquery-3.3.1.min.js"></script>
    <script charset="utf-8" src="../kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="../kindeditor/lang/zh-CN.js"></script>
    <script charset="utf-8" src="../kindeditor/plugins/code/prettify.js"></script>
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K.create('textarea[name="question"]', {
                cssPath: '../plugins/code/prettify.css',
                uploadJson: '../jsp/upload_json.jsp',
                fileManagerJson: '../jsp/file_manager_json.jsp',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        document.forms['example'].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        document.forms['example'].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>
</head>
<body>
<form class="quform" action="/addQues">
    <div class="new_question_box" style="display: block;">
        <div class="new_question_div">
            <h2>发布问题
                <a class="removeQuestion_a" href="/toWD">返回</a>
            </h2>
            <label>标题：</label>
            <input class="title_input" id="newQuestion_title" type="text" name="title">
            <br>
            <label>内容：</label>

            <textarea name="question" hidefocus="true"
                      style="width: 100%; height: 221px; display: none;""></textarea>



            <br>
            <label style="margin-top:15px;">悬赏积分：</label>
            <input class="score_input" type="text" id="newQuestion_score" name="xsjf" style="margin-top:15px;">
            <br>
            <label>标签：</label>
            <span id="questionCategory1">
                <select class="sel_type">
                    <option value="0,0,0,1">开发技术</option>
                    <option value="1,0,0,3">系统管理</option>
                    <option value="2,0,0,4">数据库管理</option>
                    <option value="3,0,0,5">网络设备管理</option>
                    <option value="4,0,0,6">云计算与虚拟化</option>
                    <option value="5,0,0,7">设计</option>
                    <option value="6,0,0,8">办公软件</option>
                    <option value="7,0,0,2">厂商认证培训</option>
                    <option value="8,0,0,9">其他认证培训</option>
                </select>
            </span>
            <span id="questionCategory2">
                <select class="sel_technology">
                    <option value="0,0,0,10">嵌入式与移动开发</option>
                    <option value="0,1,0,15">软件开发</option>
                    <option value="0,2,0,21">网页开发</option>
                    <option value="0,3,0,26">游戏开发</option>
                </select>
            </span>
            <span id="questionCategory3">
                <select class="sel_product">
                    <option value="0,0,0,11">C</option>
                    <option value="0,0,1,12">C++</option>
                    <option value="0,0,2,13">IOS</option>
                    <option value="0,0,3,14">Android</option>
                    <option value="0,0,4,10046">H5混合开发</option>
                    <option value="0,0,5,10000">其它</option>
                </select>
            </span>
            <br>
            <input type="hidden" id="type" value="" name="type">
            <input type="hidden" id="technology" value="" name="technology">
            <input type="hidden" id="product" value="" name="product">
            <input type="button" class="submit_newQuestion" value="提交问题">
        </div>
    </div>
</form>
<script src="js/ask.js"></script>
</body>
</html>